<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
        }

        .ticket-container {
            display: flex;
            margin-bottom: 20px;
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 800px; /* 你可以设置一个合适的宽度 */
            height: 200px; /* 你可以设置一个合适的高度 */
            margin: 20px auto;
        }


        .ticket-image {
            width: 30%;
            height: 100%; /* 设置为 100% */
            object-fit: cover;
        }

        .ticket-info {
            position: relative;
            width: 560px;
            padding: 20px;
            box-sizing: border-box; /* 将 box-sizing 属性设置为 border-box */
        }

        .price-wrapper {
            position: absolute;
            bottom: 10px;
            left: 20px;
        }

        .price {
            font-size: 18px;
            font-weight: bold;
        }

        .booking-wrapper {
            position: absolute;
            bottom: 10px;
            right: 20px;
        }

        .booking {
            background-color: #f60;
            color: #fff;
            padding: 10px 20px;
            border-radius: 3px;
            text-decoration: none;
            right: 20px;
        }

        .booking:hover {
            background-color: #ff8c00;
        }

        h2, p {
            margin: 0;
        }

        /* 可以根据需要设置 #tagChoose 的样式 */
        #tagChoose a {
            text-decoration: none;
            color: black;
        }

        #tagChoose div {
            border: 1px solid #ddd;
            padding: 10px;
        }

        /* 可以根据需要设置 #tagChoose 的样式 */
        #locationChoose a {
            text-decoration: none;
            color: black;
        }

        #locationChoose div {
            border: 1px solid #ddd;
            padding: 10px;
        }

        .breadcrumb-item a {
            text-decoration: none;
            color: #3498db;
        }

        .breadcrumb-item button {
            background: none;
            border: none;
            color: #e74c3c;
            cursor: pointer;
            font-size: inherit;
            margin-left: 5px;
            display: inline-block;
        }

        .bar7 form {
            height: 42px;
        }

        .bar7 input {
            width: 250px;
            border-radius: 42px;
            border: 2px solid #324B4E;
            background: #F9F0DA;
            transition: .3s linear;
            float: right;
        }

        .bar7 input:focus {
            width: 300px;
        }

        .bar7 button {
            background: none;
            top: -2px;
            right: 0;
        }

        .bar7 button:before {
            content: "\f002";
            font-family: FontAwesome;
            color: #324b4e;
        }


        form {
            position: relative;
            width: 300px;
            margin: 0 auto;
        }

        input, button {
            border: none;
            outline: none;
        }

        input {
            width: 100%;
            height: 42px;
            padding-left: 13px;
        }

        button {
            height: 42px;
            width: 42px;
            cursor: pointer;
            position: absolute;
        }

        /* 顶部导航栏样式 */
        nav {
            background-color: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 99;
            text-align: center; /* 居中显示 */
            display: flex;
            align-items: center;
            padding: 5px 20px;
        }

        nav img {
            height: 30px;
        }

        nav a {
            display: inline-block;
            color: #555;
            text-align: center;
            padding: 10px 60px; /* 调整导航栏每个元素的大小 */
            text-decoration: none;
        }

        nav a:hover {
            color: #000;
            background-color: #f5f5f5;
        }

        nav a.active {
            color: #4caf50;
            background-color: #fff;
        }

        .dropdown {
            position: relative;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            width: 150px;
            background-color: #f9f9f9;
            padding: 10px;
            box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
        }

        .dropdown-content a {
            color: black;
            padding: 6px 16px;
            text-decoration: none;
            display: block;
        }

        .dropdown:hover .dropdown-content,
        .dropdown-content:hover {
            display: block;
        }

        /* 顶部导航栏样式 */

        .type-button {
            display: inline-block;
            padding: 5px 10px;
            background-color: #f1f1f1;
            border: none;
            cursor: pointer;
            position: relative; /* 添加相对定位 */
            width: 150px; /* 设置按钮宽度 */
            height: 30px; /* 设置按钮高度 */
            text-align: center; /* 按钮文本居中 */
            font-size: 14px; /* 设置字体大小 */
        }

        .highlight {
            background-color: #ff0; /* 设置高亮时的背景颜色 */
            color: #000000; /* 设置高亮时的文本颜色 */
            /* 添加其他您需要的高亮样式 */
        }
    </style>
</head>
<body>
<!-- 顶部导航栏 -->
<nav style="margin-bottom: 100px">
    <!-- logo -->
    <div class="dropdown">
        <a href="http://sight.travel.com/">
            <img src="https://wen-travel.oss-cn-guangzhou.aliyuncs.com/logo.jpg" alt="Logo">
        </a>
    </div>
    <div class="dropdown">
        <a href="http://sight.travel.com/theme" target="_blank">主题精选</a>
    </div>
    <div class="dropdown">
        <a href="http://ticket.travel.com/" target="_blank">去旅行</a>
    </div>
    <div class="dropdown">
        <a href="#">联系我们</a>
    </div>
    <div class="dropdown">
        <a href="http://member.travel.com/sign" target="_blank">签到</a>
    </div>
    <div class="dropdown">
        <a href="#">我的</a>
        <div class="dropdown-content">
            <a href="http://member.travel.com/myAttractionCollection" target="_blank">景点收藏</a>
            <a href="http://member.travel.com/myTicketCollection" target="_blank">票务收藏</a>
            <a href="http://member.travel.com/memberOrder.html" target="_blank">我的订单</a>
            <a href="http://member.travel.com/myCollection" target="_blank">写游记</a>
            <a href="http://member.travel.com/myCollection" target="_blank">我的游记</a>
            <a href="http://member.travel.com/myCollection" target="_blank">我的足迹</a>
            <a href="http://member.travel.com/myCollection" target="_blank">浏览记录</a>
            <a href="http://member.travel.com/myCollection" target="_blank">个人信息</a>
        </div>
    </div>
    <a th:if="${loginUser != null}">欢迎, [[${loginUser.username}]]</a>
    <a th:if="${loginUser == null}" href="http://auth.travel.com/login.html">你好，请登录</a>
    <a th:if="${loginUser == null}" href="http://auth.travel.com/regist.html" class="li_2">免费注册</a>
    <a th:if="${loginUser != null}" href="http://auth.travel.com/loguot.html" class="li_2">退出</a>
</nav>




<!-- 票列表 -->
<div th:each="ticket : ${myTicketCollections}" class="ticket-container" style="margin-top: 50px;"
     th:onclick="'window.open(\'http://ticket.travel.com/' + ${ticket.spuId} + '.html\', \'_blank\')'">
    <img class="ticket-image" th:src="${ticket.image}" alt="景点图片">
    <div class="ticket-info">
        <p><b th:utext="${ticket.spuName}">票务名称</b></p>
        <br>
        <p th:text="${ticket.spuDescription}">票务的信息</p>
        <div class="price-wrapper">
            <span class="currency" style="font-size: 0.5em">￥</span>
            <span class="price" style="font-size: 1.2em;color: #ff6600" th:text="${ticket.price}"></span>
            <span class="starting" style="font-size: 0.5em;margin-right: 10px;">起</span>

            <span class="starting" style="font-size: 0.5em">销量</span>
            <span class="price" style="font-size: 0.5em" th:text="${ticket.saleCount}"></span>
        </div>
        <div class="booking-wrapper">
            <a class="booking" th:href="'http://ticket.travel.com/' + ${ticket.spuId} + '.html'"
               target="_blank">立即预定</a>
        </div>
    </div>
</div>

</body>

<script type="text/javascript">


</script>
</html>